﻿@model MobileSales.Website.Models.ChangePasswordModel

@{
    View.Title = Strings.ChangePassword;
}

<h2>@Strings.ChangePassword</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true, ErrorStrings.ErrorChangePassword)
    <div>
        <fieldset>
            <legend>@Strings.Fields</legend>

            <div class="editor-label">
                @Html.LabelFor(m => m.OldPassword)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.OldPassword)
                @Html.ValidationMessageFor(m => m.OldPassword)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.NewPassword)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.NewPassword)
                @Html.ValidationMessageFor(m => m.NewPassword)
            </div>

            <div class="editor-label">
                @Html.LabelFor(m => m.ConfirmPassword)
            </div>
            <div class="editor-field">
                @Html.PasswordFor(m => m.ConfirmPassword)
                @Html.ValidationMessageFor(m => m.ConfirmPassword)
            </div>

            <p>
                <input type="submit" value="@Strings.ChangePassword" />
            </p>
        </fieldset>
    </div>
}
